//
//  ZBLivePreview.h
//  ZhiBo
//
//  Created by huangtie on 2017/11/2.
//  Copyright © 2017年 huangtie. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LFLiveKit.h"

@protocol ZBLivePreviewDelegate <NSObject>

- (void)livePreviewDidClickQunit;

- (void)liveDidConnectError;

@end

@interface ZBLivePreview : UIView

// 推流模式：横屏或竖屏(默认横屏模式UIInterfaceOrientationMaskLandscape)
@property (nonatomic, assign) UIInterfaceOrientation supportedInterfaceOrientation;

@property (nonatomic, assign) NSInteger videoQuality;

// 音频配置（默认配置为LFLiveAudioQuality_High, sample rate: 44.1MHz audio bitrate: 128Kbps）
//@property (nonatomic, assign) LFLiveAudioQuality audioQuality;

// 视频配置（默认配置为LFLiveVideoQuality_Low2, 分辨率： 360 *640 帧数：24 码率：800Kps）
//@property (nonatomic, assign) LFLiveVideoQuality videoQuality;

@property (nonatomic , assign) id <ZBLivePreviewDelegate> delegate;

- (void)refreshTimeLabel:(NSString *)text;

- (void)refreshNoticeText:(NSString *)text;

- (void)startLive;
@end
